CC=g++
LD=g++
CCFLAGS=-c -I.

all: uptimecl

uptimecl: Socket.o SocketTCP.o SocketUDP.o Address.o IP.o Stats.o TransferCount.o Exception.o SocketException.o AddressException.o IPException.o StatsException.o TransferCountException.o HTTP.o HTTPMessage.o HTTPMessagePost.o HTTPMessageGet.o HTTPMessageResponse.o HTTPException.o uptimecl.o

uptimecl.o: uptimecl.cpp uptimecl.h
	$(CC) $(CCFLAGS) uptimecl.cpp

Socket.o: Socket.cpp Socket.h
	$(CC) $(CCFLAGS) Socket.cpp

SocketTCP.o: SocketTCP.cpp SocketTCP.h
	$(CC) $(CCFLAGS) SocketTCP.cpp

SocketUDP.o: SocketUDP.cpp SocketUDP.h
	$(CC) $(CCFLAGS) SocketUDP.cpp

Address.o: Address.cpp Address.h
	$(CC) $(CCFLAGS) Address.cpp

IP.o: IP.cpp IP.h
	$(CC) $(CCFLAGS) IP.cpp

Stats.o: Stats.cpp Stats.h
	$(CC) $(CCFLAGS) Stats.cpp

TransferCount.o: TransferCount.cpp TransferCount.h
	$(CC) $(CCFLAGS) TransferCount.cpp

Exception.o: Exception.cpp Exception.h
	$(CC) $(CCFLAGS) Exception.cpp

SocketException.o: SocketException.cpp SocketException.h
	$(CC) $(CCFLAGS) SocketException.cpp

AddressException.o: AddressException.cpp AddressException.h
	$(CC) $(CCFLAGS) AddressException.cpp

IPException.o: IPException.cpp IPException.h
	$(CC) $(CCFLAGS) IPException.cpp

StatsException.o: StatsException.cpp StatsException.h
	$(CC) $(CCFLAGS) StatsException.cpp

TransferCountException.o: TransferCountException.cpp TransferCountException.h
	$(CC) $(CCFLAGS) TransferCountException.cpp

HTTP.o: HTTP.cpp HTTP.h
	$(CC) $(CCFLAGS) HTTP.cpp

HTTPMessage.o: HTTPMessage.cpp HTTPMessage.h
	$(CC) $(CCFLAGS) HTTPMessage.cpp

HTTPMessageGet.o: HTTPMessageGet.cpp HTTPMessageGet.h
	$(CC) $(CCFLAGS) HTTPMessageGet.cpp

HTTPMessagePost.o: HTTPMessagePost.cpp HTTPMessagePost.h
	$(CC) $(CCFLAGS) HTTPMessagePost.cpp

HTTPMessageResponse.o: HTTPMessageResponse.cpp HTTPMessageResponse.h
	$(CC) $(CCFLAGS) HTTPMessageResponse.cpp

HTTPException.o: HTTPException.cpp HTTPException.h
	$(CC) $(CCFLAGS) HTTPException.cpp

clean:
	rm -f *\.o
	rm -f *~

mrproper: clean
	rm -f uptimecl
